#######################################################################################################################
# Gendered Perceptions of Legislative Influence        ############
# Jaclyn Kaslovsky, Tabitha Koch, and Michael P. Olson ############
# Perspectives on Politics                             ############
# README File                                          ############
#######################################################################################################################

This file outlines the software, code, and data used to produce the results 
presented in "Gendered Perceptions of Legislative Influence," by Jaclyn Kaslovsky, Tabitha Koch, and Michael P. Olson.
In order to replicate all tables from the main text and Appendix, replicators should run "Figure 1.R" and "Analysis.R"

##########################################################################################
	## Scripts ##
##########################################################################################

	"Analysis.R"
		runs regressions and outputs tables and figures in the main text and appendix that use the dataset "gendered_perceptions_POP.csv"

	"Figure 1.R"
		loads in datasets and outputs Figure 1 in the main text

##########################################################################################	
	## Data ##
##########################################################################################

	"gendered_perceptions_POP.csv": North Carolina legislator-year-level data used in main analyses

	"size.csv": Data from Dubin (2015) on legislature size used in Figure 1.a	

	"squire.csv": Data from Squire (2017) on professionalization in U.S. states used in Figure 1.b	

	"klarner_transformed.dta": Transformed dataset from Klarner (2018) on electoral competition in U.S. states used in Figure 1.c.
	This file is created by taking 196slers1967to2016_20180908.dta, limiting to the appropriate time period, limiting to general
	elections and single winner elections, and transforming the data to the election-by-candidate level.

	"women_SLES.csv": Data from Bucchianeri, Volden, and Wiseman (2024) including proportion of women legislators used in Figure 1.d

##########################################################################################	
	## Software Dependencies ##
##########################################################################################	

	All analyses were originally undertaken in R version 4.4.0 on a system running
	Windows 10 Enterprise.

	attached base packages:
	[1] stats     graphics  grDevices utils     datasets  methods   base     

	other attached packages:
 	[1] ggh4x_0.2.8            starpolishr_0.0.0.9007 english_1.2-6         
 	[4] lfe_3.0-0              Matrix_1.7-0           readr_2.1.5           
 	[7] dplyr_1.1.4            ggrepel_0.9.5          stargazer_5.2.3       
	[10] ggplot2_3.5.1         

	loaded via a namespace (and not attached):
 	[1] sandwich_3.1-0    utf8_1.2.4        generics_0.1.3    stringi_1.8.4     lattice_0.22-6   
 	[6] hms_1.1.3         magrittr_2.0.3    grid_4.4.0        Formula_1.2-5     fansi_1.0.6      
	[11] scales_1.3.0      textshaping_0.3.7 cli_3.6.2         rlang_1.1.3       crayon_1.5.2     
	[16] bit64_4.0.5       munsell_0.5.1     withr_3.0.0       tools_4.4.0       parallel_4.4.0   
	[21] tzdb_0.4.0        colorspace_2.1-0  vctrs_0.6.5       R6_2.5.1          zoo_1.8-12       
	[26] lifecycle_1.0.4   stringr_1.5.1     bit_4.0.5         vroom_1.6.5       ragg_1.3.1       
	[31] pkgconfig_2.0.3   pillar_1.9.0      gtable_0.3.5      glue_1.7.0        Rcpp_1.0.12      
	[36] systemfonts_1.0.6 tibble_3.2.1      tidyselect_1.2.1  rstudioapi_0.16.0 farver_2.1.2     
	[41] xtable_1.8-4      labeling_0.4.3    compiler_4.4.0